package javaCode.chapter07.polyparameter_;

public class Employee {
    private String name;
    private double salary;

    public Employee(String name, double sal) {
        this.name = name;
        this.salary = sal;
    }

    //得到年工资 Annual 年度的
    public double getAnnual() {
        return 12 * salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSal() {
        return salary;
    }

    public void setSal(double sal) {
        this.salary = sal;
    }
}
